<div id="divFrmOrderProduct"></div>
<p>&nbsp;</p>
<div id="divListOrderProduct"></div>
<script type="text/javascript">
    var loadListOrderProduct = function() {
        var request = $.ajax({
            url: '<?php echo base_url("orders/list_order_product/{$order_id}");?>',
            type: "POST",
            dataType: "html",
            async: false,
            success: function(msg) {
                $( "#divListOrderProduct" ).html( msg );
            }
        })        
    }
    
    $(document).ready(function(){
       
        loadListOrderProduct();
      
        $(".del_order_product").live('click', function(){
			var link_url = $(this).attr('data-url');
			var request = $.ajax({
				url: link_url,
				type: "POST",
				dataType: "json",
                async: false,
				success: function(msg) {
					if(msg.status == true) {
						 alert(msg.message);
                        loadListOrderProduct();
                    } else {
                        alert(msg.message);
                    }
				}
			})
			return false;
		});
        
		
});
</script>